package com.brillilab.domain.enums.lab;

/**
 * 实验室成员枚举
 * @author lj
 *
 */
public class LabMemberEnum {
	/**
	 * 状态：1-正常，2-移出，3待审核加入实验室
	 */
	public static enum State {     
		STATE_IN("正常", 1), STATE_OUT("移出", 2), WAIT_AUDIT("待审核加入实验室", 3);
		public String key;     
		private Integer value;       
		private State(String key, Integer value) {       
			this.key = key;       
			this.value = value;     
		}       
		public String getKey() {
			return key;     
		}
		public static String getKey(Integer value) {  
			for (State p : State.values()) {  
				if (p.getValue().equals(value)) {  
					return p.key;  
				}  
			}  
			return null;  
		}  
		public Integer getValue() {
			return value;     
		}         
	} 
	
	
}
